package jin.chen.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import jin.chen.pojo.UserAddress;
import jin.chen.pojo.bo.AddressBo;
import jin.chen.pojo.bo.SubmitOrderBo;
import jin.chen.service.AddressService;
import jin.chen.utils.MobileEmailUtils;
import jin.chen.utils.Result;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 收货地址相关的controller
 */
@Api(value = "订单相关接口", tags = "订单相关接口controller")
@RestController
@RequestMapping("/orders")
public class SubmitOrdersController {

    /**
     * 创建订单
     * @param submitOrderBo
     * @return
     */
    @ApiOperation(value = "提交订单接口", notes = "提交订单接口", httpMethod = "POST")
    @PostMapping("/create")
    public Result createOrders(@ApiParam(name = "SubmitOrderBo", value = "提交订单前端业务Bo", required = true)
                                @RequestBody SubmitOrderBo submitOrderBo){
        System.out.println(submitOrderBo.toString());
        return Result.OK();
    }


}
